package com.itheima.youdianda.entity;

import lombok.Data;

import java.io.Serializable;

@Data
public class Result implements Serializable {
    private Integer errno;
    private String errmsg;
    private Object data;

    public Result() {
    }

    public Result(Integer errno, String errmsg) {
        this.errno = errno;
        this.errmsg = errmsg;
    }

    public Result(Integer errno, String errmsg, Object data) {
        this.errno = errno;
        this.errmsg = errmsg;
        this.data = data;
    }
}